package com.trdcore.zyzkt.model.order;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.trdcore.zyzkt.model.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

@Data
@Schema(description = "OrderDetail")
@TableName("order_detail")
public class OrderDetail extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@Schema(title ="课程id")
	@TableField("course_id")
	private Long courseId;

	@Schema(title ="课程名称")
	@TableField("course_name")
	private String courseName;

	@Schema(title ="课程封面图片路径")
	@TableField("cover")
	private String cover;

	@Schema(title ="订单编号")
	@TableField("order_id")
	private Long orderId;

	@Schema(title ="用户id")
	@TableField("user_id")
	private Long userId;

	@Schema(title ="原始金额")
	@TableField("origin_amount")
	private BigDecimal originAmount;

	@Schema(title ="优惠劵减免金额")
	@TableField("coupon_reduce")
	private BigDecimal couponReduce;

	@Schema(title ="最终金额")
	@TableField("final_amount")
	private BigDecimal finalAmount;

	@Schema(title ="会话id 当前会话id 继承购物车中会话id")
	@TableField("session_id")
	private String sessionId;

}